package x.ovo.wechat.bot.common.entity;

import lombok.Data;
import x.ovo.wechat.bot.common.http.response.BaseResponse;

/**
 * 上传结果
 * <p>
 *
 * @author ovo on 2024/05/06.
 * @since 1.0.0
 */
@Data
public class UploadResult {

    private BaseResponse BaseResponse;
    private String MediaId;
    private Integer StartPos;
    private Integer CDNThumbImgHeight;
    private Integer CDNThumbImgWidth;
    private String EncryFileName;

    /**
     * 请求是否失败
     *
     * @return boolean
     */
    public boolean failure() {
        return this.BaseResponse.getRet() != 0;
    }
}
